﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HunterJobList.ascx.cs" Inherits="Job.Web.userControls.Hunter.HunterJobList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="Job.Web" Namespace="Job.Web.RelatedDrowDownList" TagPrefix="cc1" %>

    <table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="77%" align="right">职位关键字：</td>
        <td width="19%"><asp:TextBox ID="tbSearchKey" runat="server" size="20" CssClass="input1"></asp:TextBox></td>
        <td width="4%"><asp:ImageButton ID="btSearch" runat="server" 
                ImageUrl="~/Images/search_menu.jpg" onclick="btSearch_Click"  /></td>
      </tr>
    </table>
    <asp:DataList Width="100%" ID="jobList" runat="server" OnItemDataBound="jobList_ItemDataBound" 
        CellSpacing="0" CellPadding="0" ItemStyle-HorizontalAlign="Center">
        <HeaderTemplate>
            <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#DCDCDC">
                <tr  class="bule b">
                  <td height="25" align="center" bgcolor="#FAFAFA" width="15%">编 号</td>
                  <td align="center" bgcolor="#FAFAFA">职 位</td>
                  <td align="center" bgcolor="#FAFAFA" width="25%">年 薪</td>
                  <td align="center" bgcolor="#FAFAFA" width="25%">行 业</td>
                </tr>
            </table>
        </HeaderTemplate>
        <ItemTemplate> 
            <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#DCDCDC">
                <tr>    
                    <td align="center" bgcolor="#FFFFFF" width="15%"><%#DataBinder.Eval(Container.DataItem, "job_no")%></td>
                    <td align="center" bgcolor="#FFFFFF">
                        <asp:HyperLink ID="jobLink" runat="server"  CssClass="subjectList_A"
                            Text='<%#DataBinder.Eval(Container.DataItem,"name") %>' 
                            NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "job_no")%>'>
                        </asp:HyperLink>
                        (<asp:Label ID="jobDate" Visible="true" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"create_date","{0:yyyy-MM-dd}")%>'></asp:Label>)
                        <asp:Label ID="jobNo" Visible="false" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"job_no")%>'></asp:Label>
                        
                    </td>
                    <td align="center" bgcolor="#FFFFFF" width="25%">
                        <asp:Label ID="lbSalary" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "salary")%>'></asp:Label>
                    </td>
                    <td align="center" bgcolor="#FFFFFF" width="25%">
                        <asp:Label ID="lbIndustry" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "industry")%>'></asp:Label>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
    <table width="100%" height="40" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center">
            <webdiyer:AspNetPager Width="100%" ID="pagerButtom" runat="server" ButtonImageNameExtension="n"
                ButtonImageExtension=".gif" DisabledButtonImageNameExtension="g" 
				CpiButtonImageNameExtension="r" CssClass="pagination" CurrentPageButtonClass="current"
                PagingButtonClass="" PagingButtonLayoutType="Span" PageSize="10" 
                CustomInfoHTML="共<font color='red'> %RecordCount% </font>条记录 当前第<font color='red'> %CurrentPageIndex% </font>页/共<font color='red'> %PageCount% </font>页" 
                onpagechanged="pagerButtom_PageChanged" 
                onpagechanging="pagerButtom_PageChanging" ShowCustomInfoSection="Left" 
				FirstLastButtonStyle="" MoreButtonStyle="" 
				PagingButtonStyle="" CustomInfoClass="pagerCustomerinfo" LayoutType="Table" 
				AlwaysShow="True" CustomInfoTextAlign="Left" HorizontalAlign="Right">
            </webdiyer:AspNetPager>
          </td>
        </tr>
      </table>
